import request from '@/utils/request'

// 查询单条直线标注列表
export function listSingle_line_annotation(query) {
  return request({
    url: '/system/single_line_annotation/list',
    method: 'get',
    params: query
  })
}

// 查询单条直线标注详细
export function getSingle_line_annotation(id) {
  return request({
    url: '/system/single_line_annotation/' + id,
    method: 'get'
  })
}

// 新增单条直线标注
export function addSingle_line_annotation(data) {
  return request({
    url: '/system/single_line_annotation',
    method: 'post',
    data: data
  })
}

// 修改单条直线标注
export function updateSingle_line_annotation(data) {
  return request({
    url: '/system/single_line_annotation',
    method: 'put',
    data: data
  })
}

// 删除单条直线标注
export function delSingle_line_annotation(id) {
  return request({
    url: '/system/single_line_annotation/' + id,
    method: 'delete'
  })
}
// 获取图纸上所有线路信息
export function getLinesByDrawingId(id) {
  return request({
    url: '/system/single_line_annotation/getLinesByDrawingId/' + id,
    method: 'get'
  })
}
